package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.UserNewFeedBack;
import com.niiwoo.civet.user.dto.request.NiiwooScorePageRequestDTO;
import com.niiwoo.civet.user.dto.request.myCustomer.FeedBackDetailRequestDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserNewFeedBackMapperExt extends UserNewFeedBackMapper {

    List<UserNewFeedBack> selectByUserId(NiiwooScorePageRequestDTO requestDTO);
    int selectCountFeedBackList(NiiwooScorePageRequestDTO requestDTO);

    /**
     * 查询反馈详情
     * @param requestDTO
     * @return
     */
    UserNewFeedBack selectFeedBackListByUserIdAndStatus(FeedBackDetailRequestDTO requestDTO);

    /**
     * 反馈记录是否存在最新回复
     */
    UserNewFeedBack selectFeedBackIsNewStatus(@Param("userId")  String userId);

}